package com.hujing.exception;

public class ExceptionDemo1 {

    public static void main(String[] args) {
        //编译时异常
        int i;
//        System.out.println(i);
        
        //运行时异常
//        System.out.println(10/0);
        
        //错误 java.lang.StackOverflowError
        show();
    }
    
    public static void show(){
        String[] strings = new String[1024*1024];
        show();
    }
}
